package com.liuxm.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author liuxm
 * @version 1.0
 * @date 2021/3/23 21:58
 */
@RestController
public class FallbackController {

    @GetMapping("/fallbackDefault")
    public Map fallback() {
        Map<String, String> map = new HashMap<>();
        map.put("code", "502");
        map.put("msg", "服务超时");
        return map;

    }
}
